﻿using System.Reflection;
using CommandSavvy;

namespace CommandRunner.Console.Command
{
    public class Version : SavvyCommand
    {
        public override string Key
        {
            get { return "version"; }
        }

        public override string Description
        {
            get { return "Displays the version of Command Runner that is installed"; }
        }

        public override int Execute()
        {
            System.Console.WriteLine(Assembly.GetExecutingAssembly().GetName().FullName);
            return (int)SavvyCommandReturnCode.SUCCESS;
        }
    }
}
